package br.com.iswe.teste.modelo;

import junit.framework.TestCase;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Classe base de testes da camada de acesso a dados.
 * 
 * @author Rafael Nami
 * 
 */
@SuppressWarnings("unchecked")
public class BaseDAOTestCase extends TestCase {
	protected final Log log = LogFactory.getLog(getClass());

	protected ApplicationContext applicationContext;
	
	protected String[] getConfigLocations()
	{
		return new String[] { "classpath*:applicationContext-jdbc.xml", "classpath*:applicationContext-dao.xml" };
	}

	public BaseDAOTestCase()
	{
		applicationContext = new ClassPathXmlApplicationContext(getConfigLocations());
	}
}
